package com.snail.billing.session;

import com.snail.billing.DataCache;
import com.snail.billing.net.BillingArrayHttpSession;
import com.snail.billing.net.BillingSecurity;

public class WorkTypeSession extends BillingArrayHttpSession {

	public WorkTypeSession() {
		DataCache cache = DataCache.getInstance();
		String host = cache.importParams.hostBusiness;
		String address = String.format("http://%s/problem/queryIssureType.do", host);
		setAddress(address);
		addBillingPair("gameId", cache.importParams.gameId);
		buildParamPair();
	}

	@Override
	public BillingSecurity getSecurity() {
		if (DataCache.getInstance().isSandbox) {
			return BillingSecurity.securitySandbox2;
		}
		return BillingSecurity.security;
	}

}
